﻿<%@ Page Language="C#" MasterPageFile="~/Master/MasterPage2.master" AutoEventWireup="True" CodeBehind="WarningTradProcessStop.aspx.cs" Inherits="EarlyWarning_WarningTradProcessStop" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="tabnav">
        <ul>
            <li><a href="WarningSetup.aspx">药品预警设置</a></li>
            <li><a href="WarningSetuptime.aspx">响应时间预警设置</a></li>
            <li><a href="WarningStared.aspx">已启动的预警</a></li>
            <li class="active"><a href="javascript:void(0);">禁用的预警</a></li>
        </ul>
    </div>
  <div id="tabnav">
        <ul>
            <li><a href="WarningProcessStop.aspx" >药品禁用预警列表</a></li>
            <li class="active"><a href="javascript:void(0);">交易禁用预警列表</a></li>
        </ul>
    </div>
    <div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            CssClass="mainlist" onrowdatabound="GridView1_RowDataBound">
            <EmptyDataTemplate>
                <div><label style="color:Red">暂时没有你要的数据！</label></div>
            </EmptyDataTemplate>
            <Columns>
             
            <asp:TemplateField HeaderText="序号">
                        <ItemTemplate>
                            <%# Container.DataItemIndex+1+(AspNetPager1.CurrentPageIndex-1)*AspNetPager1.PageSize %>
                        </ItemTemplate>
                    </asp:TemplateField>
                <asp:BoundField DataField="AreaName" HeaderText="地区" />
                <asp:BoundField DataField="HospitalName" HeaderText="医院" NullDisplayText="所有医院"/>
                <asp:BoundField DataField="CompanyName" HeaderText="企业" NullDisplayText="所有企业" />
                <asp:BoundField DataField="SortName" HeaderText="类别" NullDisplayText="所有类别" />
                <asp:BoundField DataField="ProductName" HeaderText="药品名称" NullDisplayText="所有药品" />
                <asp:TemplateField HeaderText="警告类型" >
                    <ItemTemplate>
                        <asp:Label ID="LabType" runat="server" Text='<%#Eval("WarningType") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="警告级别">
                    <ItemTemplate>
                        <asp:Label ID="LabLeve" runat="server" Text='<%#Eval("WarningLevel") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="警告时间(天)">
                    <ItemTemplate>
                        <label id="lab"><%#Eval("WarningDate")%>天</label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField >
                        <HeaderTemplate>
                            <input id="addTable_chkAll" name="chkAll" type="checkbox" onclick="SelectAllCheckboxes(this,'<%=GridView1.ClientID %>','addTable_chkAll'); " />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <input type="checkbox" name="checkbox1" id="checkbox1" value='<%#Eval("TradePreWarningID")%>'
                                onclick="chkChecked(this,'<%=GridView1.ClientID %>','addTable_chkAll');" />
                        </ItemTemplate>
                    </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
     <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server">
        </webdiyer:AspNetPager>
    </div>
    <div class="listctrl">
        <asp:Button Text="启用预警" ID="btn_openWarning" class="btn" runat="server" OnClick="btn_openWarning_Click" />&nbsp;
        <asp:Button Text="删除预警" ID="btn_delWarning" class="btn" runat="server" OnClick="btn_delWarning_Click" />
    </div>
</asp:Content>

